import request from '@/api/index'

// 农行支付
export const paymentWeChat = {
  request: ({ token, model, order_no }) => {
    return request({
      url: '/WeChat/PaymentWeChat',
      method: 'POST',
      data: { token, model, order_no }
    })
  }
}

// 均安医院支付
export const junanyiyuanPay = {
  request: ({
    order_no,
    code,
    junanyiyuanToken
  }) => {
    return request({
      url: '/apiv2/CCbPay/app/pay',
      method: 'post',
      data: {
        order_no,
        code,
        junanyiyuanToken // 均安医院token
      }
    })
  }
}
// 均安医院点餐小程序支付
export const junanyiyuanMPPay = {
  request: ({
    order_no,
    code,
    junanyiyuanToken
  }) => {
    return request({
      url: '/weapp/CCbPay/app/pay',
      method: 'post',
      data: {
        order_no,
        code,
        junanyiyuanToken // 均安医院token
      }
    })
  }
}